package com.hsq.spzx.manager.mapper.user;

import com.hsq.spzx.model.entity.product.Category;
import com.hsq.spzx.model.vo.product.CategoryExcelVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author hsq
 * @date 2025年06月07日下午2:03
 */
@Mapper
public interface CategoryMapper {
    //根据父亲id查询
    List<Category> selectByParentId(Long parentId);

    int countByParentId(Long id);

    List<Category> selectAll();

    void batchInsert(List<CategoryExcelVo> cachedDataList);
}
